<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function doClose(){
            window.close();
        }
    </script>
</head>
<body>

    <input type="button" value="close" onclick="doClose()">
    welcome to success
</body>
</html>